#include "common.h"

#ifdef __cplusplus
extern "C" {
#endif
/*
 * Class:     b2Joint
 * Method:    jniGetType
 * Signature: (I)I
 */
JNIEXPORT jint JNICALL Java_b2Joint_jniGetType
  (JNIEnv *env, jclass cls, jint addr)
{
	b2Joint* joint = (b2Joint*)addr;
	return (jint)(joint->GetType());
}

/*
 * Class:     b2Joint
 * Method:    jniIsActive
 * Signature: (I)Z
 */
JNIEXPORT jboolean JNICALL Java_b2Joint_jniIsActive
  (JNIEnv *env, jclass cls, jint addr)
{
	b2Joint* joint = (b2Joint*)addr;
	return (jboolean)(joint->IsActive());
}

/*
 * Class:     b2Joint
 * Method:    jniGetCollideConnected
 * Signature: (I)Z
 */
JNIEXPORT jboolean JNICALL Java_b2Joint_jniGetCollideConnected
  (JNIEnv *env, jclass cls, jint addr)
{
	b2Joint* joint = (b2Joint*)addr;
	return (jboolean)(joint->GetCollideConnected());
}

#ifdef __cplusplus
}
#endif
#endif
